<g:ifAnyGranted role="ROLE_EDU_LEADER">
 <div style="height:400px;font-size:16px;color:blue;">
 <br> <br>
欢迎登录教育系统
</div>
</g:ifAnyGranted>

<g:ifAnyGranted role="ROLE_ADMIN">
 <div id="mypanel" class="mypanel span-20">
    <h1> <x:perfectTime/>，管理员</h1>
</div>

<div class="span-22 last mainColumn">
<div class="span-20 last titleColumn">管理学校</div>
    
</div>
</g:ifAnyGranted>
<g:ifNotGranted role="ROLE_ADMIN,ROLE_EDU_LEADER">
<div id="mypanel" class="mypanel span-20">
    <h1> <x:perfectTime/>，<g:loggedInUserInfo field="name"/></h1>
</div>

<div class="span-22 last mainColumn">
<div class="span-20 last titleColumn">我的课表</div>
     <g:include controller="planMgr" action="myPlan" />
</div>

<div class="span-22 last mainColumn">
<div class="span-20 last titleColumn">校内信息</div>
     <div class="panel span-10 left}">
        <div class="panelTop">
            <h1>公告</h1>
        </div>
        <div class="panelBody">
            <ul>
            <g:each in="${News.findAllByCategory('公告',[max: 5])}" var="news">
                <li><g:link controller="news" action="show" id="${news?.id}">${news?.title}</g:link>(<g:formatDate date="${news?.createTime}" />)
            </g:each> 
            </ul>
        </div>
    </div> 
     <div class="panel span-10 last}">
        <div class="panelTop">
            <h1>通知</h1>
        </div>
        <div class="panelBody">
            <ul>
            <g:each in="${News.findAllByCategory('通知',[max: 5])}" var="news">
                <li><g:link controller="news" action="show" id="${news?.id}">${news?.title}</g:link>(<g:formatDate date="${news?.createTime}" />)
            </g:each>
            </ul>
        </div>
    </div>  
</div>
</g:ifNotGranted>
<div class="span-22 bottom">
<div class="span-22 last mainColumn">
教育管理系统1.2v <a href="">4月26日更新</a>  | <a href="">体验室</a> | <a href="">团队博客</a> | <a href="">加入我们</a>  | <a href="">联系我们</a>
<br>© 1998 - 2010 xedu.net.cn Inc. All Rights Reserved
</div> 
</div>